$(function(){
  $("button#statBtn").bind("click",function(){
       loadPage(0);
	  
  });
  
  //stat 分页
  $("div.pagination ul li a").bind("click",function(){
	  if($(this).hasClass("noclick"))return;
	  loadPage(this.page); 
  });

});

function loadPage(page){
	var data = $("form#statform").serialize();
	doGet("sparepart/spare-part!stat",data+"&page="+page+"&rows=10");
    return false;
}

function statDetail(owner,usedate,page,rows){	
	doGet("sparepart/spare-part!statdetail","page=0&rows=10&owner.id="+owner+"&usedate="+usedate);
	return false;
}